package com.msgqu.share.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.msgqu.share.domain.user.TUser;
import com.msgqu.share.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: wsj
 * @create: 2020-11-03 12:26
 * @throws:
 */
@Service
public class UserServiceComsumer implements UserService{

    @Reference(interfaceClass = UserService.class,version = "1.0.0",check = false)
    private UserService userService;
    @Override
    public String getMessage() {
        System.out.println("---------1");
        return userService.getMessage();
    }

    @Override
    public TUser getUserById(Long nId) {
        return userService.getUserById(nId);
    }
}
